package com.jiao.domain.DTO;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@ApiModel("评论DTO")
@AllArgsConstructor
@NoArgsConstructor
public class CommentDto {
    //文章id
    @ApiModelProperty(value = "文章id", dataType = "Long", required = true)
    private Long articleId;
    //评论类型
    @ApiModelProperty(value = "评论类型", dataType = "String", required = true)
    private String type;
    //根评论id
    @ApiModelProperty(value = "根评论id", dataType = "Long", required = true)
    private Long rootId;
    //评论内容
    @ApiModelProperty(value = "评论内容", dataType = "String", required = true)
    private String content;
    //所回复的目标评论的userid
    @ApiModelProperty(value = "所回复的目标评论的userid", dataType = "Long", required = true)
    private Long toCommentUserId;
    //回复目标评论id
    @ApiModelProperty(value = "回复目标评论id", dataType = "Long", required = true)
    private Long toCommentId;
}
